This directory contains two folders, one that contains the code and one the data to recreate the results in the paper "Carriers of the Creed: Examining Democrats’ Commitment to Egalitarianism as Principle and Policy."

All results and figures from the main text can be obtained using "Main analyses.do" and "Figures 1 and 5.R" without needing those files that code the datasets for those interested.

There are five primary files containing the code:
1. Coding ANES cumulative file.do
2. Combines cross sections for gay and lesbian analysis.do
3. Main analyses.do
4. Figures 1 and 5.R
5. Numerical Results for Supplemental Online Appendix.do

The first two ("Coding ANES cumulative file.do" and "Combines cross sections for gay and lesbian analysis.do") code the raw datasets and create the necessary datasets for the analyses. The second is necessary as the item asking respondents their sexual orientation is not included in the cumulative file.

The third file, "Main analyses.do", provides the numerical results presented in Tables 1 and 2 as well constructs Figure 2-4. The fourth file "Figures 1 and 5.R" constructs Figures 1 and 5. Finally, the final file ("Numerical Results for Supplemental Online Appendix.do") runs the analyses for the numerical results presented in the supplementary material.

There are several additional files in the "Aux Code" directory, each of which is run from one of the main files.

If there are any questions, please contact Judd Thornton at jrthornton@gsu.edu.